package com.mengxin.secondkill.message.resp;

import com.mengxin.secondkill.domain.Order;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author mengxin
 * @date 2020/12/24 16:33
 */
@Data
@NoArgsConstructor
public class AddOrderResp {

    private Long id;

    private Long orderNumber;

    public AddOrderResp(Order order){
        this.id = order.getOrderId();
        this.orderNumber = order.getOrderNumber();
    }
}
